<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="../../views/common/taglibs.jsp"%>

<div id="updateTagsForItemPopDiv" style="width: 500px;height: 600px" class="pop-box">
	<form id="updateTagsForItemFrm" name="updateTagsForItemFrm" action="/back/item/updateTagsForItem.htm" method="post" enctype="multipart/form-data" onsubmit="return false;">
		<h6>用户商品库存批量修改</h6>
		<div class="pop-box-body" style="margin-top: 0;padding-top: 0;">
			<div>
				<table>
					<tr>
						<td style="text-align:left;">商品图片：&nbsp;&nbsp;
						<c:if test="${item.pic!=null}">
				        	<img src="${item.pic}" alt="商品图片" height="50px" width="auto"/>
				        </c:if>
						</td>
					</tr>
					<tr>
						<td style="text-align:left;">商品描述：&nbsp;&nbsp;${item.itemDesc}</td>
					</tr>
					<tr>
						<td style="text-align:left;">品牌：&nbsp;&nbsp;${item.brandTitle}</td>
					</tr>
					<tr>
						<td style="text-align:left;">类目：&nbsp;&nbsp;${item.categoryFullTitle}</td>
					</tr>
					<tr>
						<td style="text-align:left;">受众：&nbsp;&nbsp;
							<c:if test="${item.feature==null || item.feature=='10'}">通用</c:if>
							<c:if test="${item.feature!=null && item.feature=='0'}">女</c:if>
					        <c:if test="${item.feature!=null && item.feature=='1'}">男</c:if>
	        			</td>
					</tr>
					<tr>
				      	<td height="100">
				      	
				      	</td>
				    </tr>
					<tr>
				      	<td height="10">
				      		<hr/>
				      	</td>
				    </tr>
				    <tr>
				      	<td>
				      		标签：&nbsp;&nbsp;
				      		<input id="tagInput" type="text" style="width: 180px;"/>
				      		&nbsp;&nbsp;&nbsp;<input class="btn_add" value="添加" type="button" style="font-size: 9px;" onclick="addItemTag();"/>
				      		<input class="tagListInput" type="hidden" name="tagListString" value=""/>
				      	</td>
				    </tr>
					<tr>
				      	<td height="50">
				      	
				      	</td>
				    </tr>
				    <tr>
			      	<td>
			      		已添加标签：
			      	</td>
			   </tr>
				<tr>
			      	<c:if test="${itemTagList!=null}">
				      	<td id="itemTags" style="text-align:left;">
				      		<c:forEach items="${itemTagList}" var="itemTagTemp" varStatus="status">
				      			<span style='position: relative;'>
				      				<button class="tagListButton" type="button" disabled="disabled">${itemTagTemp.tagTitle}</button>
				      				<input type='image' style="width:15px;height:auto;" src='../../images/main/Delete.png' onclick='deleteTag(this);'>&nbsp;&nbsp;
				      			</span>
				      		</c:forEach>
				      	</td>
			      	</c:if>
			   </tr>
					<tr>
				      	<td height="10">
				      	
				      	</td>
				    </tr>
					<tr>
						<td style="padding-left: 60px;">
                            <input type="hidden" id="itemId" name="itemId" value="${item.id}" />
							<input class="btn_add" value="确认修改" type="button" style="font-size: 9px;" onclick="updateTagsForItemSubmit(${item.id});"/>
							&nbsp;&nbsp;&nbsp;
							<input class="btn_add" value="关 闭" onclick="hideDiv('updateTagsForItemPopDiv');" type="button" style="font-size: 9px;" />
						</td>
					</tr>
				</table>
			</div>
		</div>
	</form>
	<div id="updateTagsForItemMsg"></div>
</div>
